package com.yu.crm.web;


import com.yu.crm.domain.pojo.Station;
import com.yu.crm.service.impl.StationService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author zds
 * @since 2021-03-12
 */
@Api(tags = "站点管理")
@RestController
@RequestMapping("/station")
public class StationController {

    @Autowired
    private StationService stationService;

    @ApiOperation(value = "保存")
    @PostMapping(value = "/save")
    public void save(Station station){
        stationService.save(station);
    }

}

